package com.cdck.safe.dete.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cdck.safe.dete.model.entity.CommunityUser;
import com.cdck.safe.dete.model.query.BaseKeywordsQuery;
import com.cdck.safe.dete.model.query.CommunityUserQuery;
import com.cdck.safe.dete.model.vo.CommunityUserVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * (CommunityUser)表服务接口
 *
 * @author wp
 * @since 2024-02-26 23:02:29
 */
public interface CommunityUserService extends IService<CommunityUser> {


    /**
     * 分页列表
     *
     * @return
     */
    IPage<CommunityUserVo> queryByPage(CommunityUserQuery queryParams);


    /**
     * 获取表单数据
     *
     * @param id
     * @return
     */
    CommunityUser getCommunityUserFormData(Long communityId, Long userId);

    /**
     * 新增数据
     *
     * @param communityUser CommunityUser对象
     * @return
     */
    boolean saveCommunityUser (CommunityUser communityUser);

   /**
     * 修改数据
     *
     * @param id   id
     * @paramcommunityUser CommunityUser对象
     * @return
     */
    boolean updateCommunityUser(Long id, CommunityUser communityUser);

    /**
     * 删除数据
     *
     * @param idsStr id,多个以英文逗号(,)分割
     * @return
     */
    boolean deleteCommunityUsers(String idsStr);

    boolean updateStatusCommunityUser(Long id);
}
